package com.zjw.project.manager.controller;

import com.zjw.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Classname DemoController
 * @Author guoweixin
 * @Description TODO
 * @Date 2021/1/20 11:29
 * @Created by Administrator
 */
@RequestMapping("demo")
@Controller
public class DemoController {

    @Autowired
    private DemoService demoService;
    @ResponseBody
    @GetMapping("info")
    public String info(){

        return demoService.selectById(1).toString()+"后台管理端查询出的数据";
    }
}
